﻿USE [ShopDB]
GO

/****** Object:  StoredProcedure [dbo].[OrderGetItems]    Script Date: 04/12/2011 11:21:54 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[OrderGetItems]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[OrderGetItems]
GO

USE [ShopDB]
GO

/****** Object:  StoredProcedure [dbo].[OrderGetItems]    Script Date: 04/12/2011 11:21:54 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE PROCEDURE [dbo].[OrderGetItems]
	@OrderID bigint
AS
BEGIN
	SELECT OrdersItems.ProductID, OrdersItems.Quantity
	FROM OrdersItems
	WHERE @OrderID = OrdersItems.OrderID
END

GO


